<template>
  <el-color-picker
    v-bind="inputInfo.inputAttrs"
    v-model="value"
    @input="$emit('update:modelValue', value)"
  />
</template>

<script>
import { defineComponent, ref } from "vue";

export default defineComponent({
  name: 'CommonColorPicker',
  props: {
    inputInfo: {
      type: Object,
      default: {}
    }
  },
  setup(props) {
    return {
      value: ref(props.inputInfo.value)
    }
  }
})
</script>

<style>

</style>